package com.tensquare.gateway.service;

/**
 * rsa加密解密服务接口
 *
 */
public interface RsaService {

    /***
     * RSA解密
     */
    public String RSADecryptDataPEM(String encryptData, String prvKey) throws Exception;

    /***
     * RSA解密
     */
    public String RSADecryptDataBytes(byte[] encryptBytes, String prvKey) throws Exception;

    /***
     * RSA加密
     */
    public String RSAEncryptDataPEM(String data, String pubKey) throws Exception;

    public String getRsaAlgorithm();
}
